package cn.walls1717.wallsmall.ware.service;

import com.baomidou.mybatisplus.extension.service.IService;
import cn.walls1717.wallsmall.common.utils.PageUtils;
import cn.walls1717.wallsmall.ware.entity.PurchaseDetailEntity;

import java.util.List;
import java.util.Map;

/**
 * 
 *
 * @author walls1717
 * @email walls1717@163.com
 * @date 2022-10-30 08:57:21
 */
public interface PurchaseDetailService extends IService<PurchaseDetailEntity> {

    /**
     * 分页条件查询
     *
     * @param params 查询条件
     * @return 分页数据
     */
    PageUtils listPagesByConditions(Map<String, Object> params);

    /**
     * 根据采购单id查找采购需求
     *
     * @param purchaseId 采购单id
     * @return 采购详情集合
     */
    List<PurchaseDetailEntity> listPurchaseDetailsByPurchaseId(Long purchaseId);
}

